package tp_sd_base;

import java.io.IOException;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author kill9
 */
public interface IServer {
    
    public enum MESSAGE_TYPE{
        MESSAGE,
        INSERT,
        DELETE,
        LOGIN,
        LOGOUT,
        REGISTRATION,
        RANKING,
        REFRESH,
        ERROR,
        PARTIAL_REFRESH
    }

    public enum OPERATION{
        ADD,
        REMOVE
    }

    public enum ERROR_TYPE{
        INVALID_OPERATION,
        INVALID_ARGS,
        LOGIN,
        REGISTRATION,
        INSERT,
        DELETE,
        DISCONNECT
    }

    public enum RANKING{
        MESSAGES,
        FOLLOWERS
    }

    public enum REFRESH_TYPE{
        ONLINE,
        FOLLOWED,
        FOLLOWERS
    }

    public void disconnect() throws IOException;

    public void connect() throws IOException;
    
}
